<template>
</template>

<script>
import Util from '../js/util.js';
 export default {
 	mounted:function(){
 		let aUrl = ['data.json','data1.json','data2.json','data3.json','data.json'];
 		let _this = this;
 		let i = 0;
 		let timer = setInterval(function(){
 			let obj = {
	 			_this:_this,
	 			url:aUrl[i],
	 			successCallback:function(res){
	 				if(JSON.parse(res.bodyText).statusCode == 302){
	 					Util.modalParams._this = _this;
	 					Util.modalParams.content = '用户已被登出，请重新进行登录';
	 					Util.alertModal(modalParams,function(){
	 						
	 					})
	 				}
	 			}
	 		};
 			i < aUrl.length ? i ++ : clearInterval(timer);
			Util.getAjax(obj);
 		},3000);
	}
 }
</script>

<style>
</style>